<{*
* Qualitative Web Templates for Web Application Platforms
*
* @license       http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License (GPL)
* @package       IXThemes, http://ixthemes.org
* @theme_author  Alexander Galochkin (algalochkin at users.sourceforge.net)
* @version		     $Id: system_block_themes.html 587 2009-04-06 04:41:02Z algalochkin $
*
* Thanks you, that you have left this header untouched!!!
*}>
<{*
<{php}>
    global $xoopsConfig;
    $theme_options = '';
    foreach ($xoopsConfig['theme_set_allowed'] as $theme) {
        $theme_options .= '<option value="'.$theme.'"';
        if ($theme == $xoopsConfig['theme_set']) {
            $theme_options .= ' selected="selected"';
        }
        $theme_options .= '>'.$theme.'</option>';
    }
    $block = array();
    if ($options[0] == 1) {
        $block['theme_select'] = "<img vspace=\"2\" id=\"xoops_theme_img\" src=\"".XOOPS_THEME_URL."/".$xoopsConfig['theme_set']."/shot.gif\" alt=\"screenshot\" width=\"".intval($options[1])."\" /><br /><select id=\"xoops_theme_select\" name=\"xoops_theme_select\" onchange=\"showImgSelected('xoops_theme_img', 'xoops_theme_select', 'themes', '/shot.gif', '".XOOPS_URL."');\">".$theme_options."</select><button name=\"search\" type=\"submit\" class=\"ixt-button\"><span class=\"btn\"><span class=\"t\">"._GO."</span><span class=\"r\"><span></span></span><span class=\"l\"></span></span></button>";
} else {
        $block['theme_select'] = '<select name="xoops_theme_select" onchange="submit();" size="3">'.$theme_options.'</select>';
    }
    $block['theme_select'] .= '<br />('.sprintf(_MB_SYSTEM_NUMTHEME, '<strong>'.count($xoopsConfig['theme_set_allowed']).'</strong>').')<br />';
<{/php}>
*}>
<div style="width:100%; text-align:center;">
 <form action="index.php" method="post">
  <{$block.theme_select}>
 </form>
</div>